﻿using UnityEngine;
using System.Collections;
using UnityEngine.UI;

public class ScoreKeeper : MonoBehaviour {

	public Text _text;

	private int score = 0;
	private int deaths = 0;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		_text.text = "Rescued : " + score.ToString() + "\nDIAF : " + deaths.ToString();

	}

	public void updateScore(int updateScore) {
		score += updateScore;
	}

	public void updateDeaths(int updateDeaths) {
		deaths += updateDeaths;
	}

}
